package com.itheima.health.service.impl;

import com.itheima.health.dao.MobileOrderDao;
import com.itheima.health.pojo.Order;
import com.itheima.health.service.MobileOrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Slf4j
@Service
public class MobileOrderServiceImpl implements MobileOrderService {
    @Autowired
    private MobileOrderDao mobileOrderDao;

    @Override
    public List<Order> getOrderByMemberId(Integer memberId) {
        return mobileOrderDao.getOrderByMemberId(memberId);
    }

    @Override
    public void insert(Order order) {
        mobileOrderDao.insert(order);
    }

    @Override
    public Order findById(Integer id) {
        return mobileOrderDao.findById(id);
    }
}
